package god.model;

public class RetangleVO {
	private double width;
	private double height;
	private double area;
	private double perimeter;
	
	public RetangleVO(double width, double height) {
		this.width = width;
		this.height = height;
	}

	public double getWidth() { return width; }
	public void setWidth(double width) { this.width = width; }

	public double getHeight() { return height; }
	public void setHeight(double height) { this.height = height; }
	
	public double getArea() { return area; }
	public void setArea(double area) { this.area = area; }

	public double getPerimeter() { return perimeter; }
	public void setPerimeter(double perimeter) { this.perimeter = perimeter; }

	@Override
	public String toString() {
		String result = "";
		result += "가로 : " + width + " 세로 : " + height + " 면적 : "  +area + " 둘레 : " + perimeter;
		return result;
	}
}
